# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        博智科技  
# Name:         demo1221
# Description:
# Author:       yzl
# Date:         2019-02-08
#-------------------------------------------------------------------------------


import os

#获取当前路径
print(os.getcwd())

# 遍历指定文件
print(os.listdir(os.getcwd()))

# 改变路径
# os.sep linux '/' windows '\'
os.chdir('../')

print(os.getcwd())
print(os.listdir(os.getcwd()))

print('-------------------------------------')
print(os.path.abspath(__file__))
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
print(BASE_DIR)
